function res = KNNPredict( model, feat )

k = model.k;

idx = knnsearch(model.feat, feat , 'k', k );

n = size(feat, 1);
dim = size(model.res,2);

res = zeros( n, dim );

for i = 1 : n
    res(i , :) = mean(model.res( idx(i,:), :));
end